package com.example.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Entity
@Table(name = "h_hospital_department")
public class HospitalDepartment implements Serializable {

	private static final long serialVersionUID = -8997227066188201402L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "disable_bit", columnDefinition = "tinyint(1)")
	private Boolean disable;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "create_member_nvarchar", columnDefinition = "varchar(255)")
	private String createMember;
	@Column(name = "is_recommend_bit", columnDefinition = "tinyint(1)")
	private Boolean isRecommend;
	@Column(name = "pd_id_bigint", columnDefinition = "bigint(20)")
	private Long pdId;
	@Column(name = "label_tinyint", columnDefinition = "tinyint(1) comment 'HOT=1,推荐=2,NEW=3'")
	private Integer label;
	@Column(name = "dept_org_name_nvarchar", columnDefinition = "varchar(255)")
	private String deptOrgName;
	@Column(name = "dept_org_code_nvarchar", columnDefinition = "varchar(255)")
	private String deptOrgCode;
	@Column(name = "dept_his_code_nvarchar", columnDefinition = "varchar(255)")
	private String deptHisCode;
}
